#include "longjiejing.h"
#include "ui_longjiejing.h"

longjiejing::longjiejing(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::longjiejing)
    , scene(new QGraphicsScene(this))
    , longBackground(nullptr)

{
    ui->setupUi(this);
    ui->graphicsView->setScene(scene);
    setWindowTitle("龙结晶之地：感谢观看");
    this->setFixedSize(1200, 760);
    ui->graphicsView->setFixedSize(1200, 760);
    scene->setSceneRect(0, 0, 1800, 1140);
    ui->graphicsView->setTransform(QTransform::fromScale(1200.0/1800.0, 760.0/1140.0));
    longBackground = new QGraphicsPixmapItem(QPixmap(":/image/C:/Users/lenovo/Pictures/longjiejing.jpg"));
    longBackground->setPos(0, 0);
    longBackground->setZValue(-10);
    scene->addItem(longBackground);

}

longjiejing::~longjiejing()
{
    delete ui;
    delete scene;
}
